﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;

namespace OZDoo.Components
{
    class DefaultUser : IUser
    {
        private MembershipUser user;

        public MembershipUser User
        {
            get { return user; }
            set { user = value; }
        }



        public DefaultUser(MembershipUser user)
        {
            this.user = user;
        }

        public string UserName
        {
            get { return user.UserName; }
        }
        public string Password { get { return user.GetPassword(); } }
        public string Email { get { return user.Email; } set { user.Email = value; } }
        public bool IsLock { get { return user.IsLockedOut; } }

    }
}
